package com.ty.day1;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : TangYu
 * @create 2023/10/26 17:27
 */
public class Fourth {
    public static void main(String[] args) {
        int x = 44, y = 88, z = 12, t;
        System.out.println("刚开始x=" + x + ",y=" + y + ",z=" + z);
        if (x > y) {
            t = x;
            x = y;
            y = t;
        }
        if (x > z) {
            t = x;
            x = z;
            z = t;
        }
        if (y > z) {
            t = y;
            y = z;
            z = t;
        }
        System.out.println("从小到大排序后x=" + x + ",y=" + y + ",z=" + z);
    }
}
